const joi = require("joi")

const name = joi.string().min(2).max(6).required()
const alias = joi.string().min(2).max(6).alphanum().required()
const id = joi.number().integer().min(1).required()

exports.reg_artistcate_scheam = {
  body: {
    name,
    alias,
  },
}

exports.update_cate_schema = {
  body: {
    Id: id,
    name,
    alias,
  },
}
